﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyOA.DAL;
using MyOA.Model;


namespace MyOA.BLL
{
     public class PersonScheduleManage
    {
         PersonScheduleService service = new PersonScheduleService();

     

        /// <summary>
        /// 根据登陆号获取登陆ID
        /// </summary>
        /// <param name="loginId">登陆号</param>
        /// <returns>获取登陆ID</returns>
         public int getUserIdByLoginId(string loginId)
         {
             return service.getUserIdByLoginId(loginId);
         }

         /// <summary>
         /// 根据创建时间和创建人ID来获取第一个个人日程
         /// </summary>
         /// <param name="dt">创建时间</param>
         /// <param name="loginId">创建人ID</param>
         /// <returns>第一个个人日程</returns>
         public Schedule getScheduleByCreateTimeAndCreateUserId(DateTime dt, int loginId)
         {
             return service.getScheduleByCreateTimeAndCreateUserId(dt,loginId);
         }

         /// <summary>
         /// 根据创建时间和创建人ID来获取个人日程集合
         /// </summary>
         /// <param name="dt">创建时间</param>
         /// <param name="loginId">创建人ID</param>
         /// <returns>个人日程集合</returns>
         //public IList<Schedule> getSchedulesByCreateTimeAndCreateUserId(DateTime dt,int loginId)
         //{
         //    IList<Schedule> schedules = new List<Schedule>();
         //    using ()
         //    {
                 
         //    }
         //    return schedules;
         //}
    }
}
